﻿using DevExpress.XtraReports.UI;
using DXApplicationTangche.UC.报表;
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;

namespace DXApplicationTangche.report
{
    public partial class XtraReport2 : DevExpress.XtraReports.UI.XtraReport
    {

        public XtraReport2(List<Douyin热销VO> list)
        {
            InitializeComponent();
            this.DataSource = list;
            this.bindData(list);
        }

        private void bindData(List<Douyin热销VO> list)
        {
            this.xrTableCell商品名.DataBindings.Add("Text", list, "productname");
            this.xrTableCell款号.DataBindings.Add("Text", list, "stylecode");
            this.xrTableCell面料.DataBindings.Add("Text", list, "materialcode");
            this.xrPictureBox图片.DataBindings.Add("Image", list, "pic");
        }

    }
}
